FF = gfortran #use ifort if intel compilers available
OPTS = -O3 #-CB

SRC = globals.f90, space.f90, write_results.f90, emit.f90, time_int.f90, main.f90
OBJ = $(addsuffix .o,$(basename $(SRC)))
EXEC = heat

$(EXEC): $(OBJ) makefile
	$(FF) $(OPTS) -o $@ $(OBJ)

%.o: %.f90
	$(FF) -c $<

clean: 
	rm *.o *~ *.mod $(EXEC)
